.class final Llt/noframe/gpsfarmguide/gps/AppLocationProvider$onLocationUpdate$1;
.super Ljava/lang/Object;
.source "AppLocationProvider.kt"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Llt/noframe/gpsfarmguide/gps/AppLocationProvider;->onLocationUpdate(Llt/farmis/libraries/externalgps/GPSLocation;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x18
    name = null
.end annotation


# instance fields
.field final synthetic $location:Llt/farmis/libraries/externalgps/GPSLocation;

.field final synthetic this$0:Llt/noframe/gpsfarmguide/gps/AppLocationProvider;


# direct methods
.method constructor <init>(Llt/noframe/gpsfarmguide/gps/AppLocationProvider;Llt/farmis/libraries/externalgps/GPSLocation;)V
    .locals 0

    iput-object p1, p0, Llt/noframe/gpsfarmguide/gps/AppLocationProvider$onLocationUpdate$1;->this$0:Llt/noframe/gpsfarmguide/gps/AppLocationProvider;

    iput-object p2, p0, Llt/noframe/gpsfarmguide/gps/AppLocationProvider$onLocationUpdate$1;->$location:Llt/farmis/libraries/externalgps/GPSLocation;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final run()V
    .locals 4

    .line 236
    new-instance v0, Landroid/location/Location;

    const-string v1, "external_gps_provider"

    invoke-direct {v0, v1}, Landroid/location/Location;-><init>(Ljava/lang/String;)V

    .line 237
    iget-object v1, p0, Llt/noframe/gpsfarmguide/gps/AppLocationProvider$onLocationUpdate$1;->$location:Llt/farmis/libraries/externalgps/GPSLocation;

    iget v1, v1, Llt/farmis/libraries/externalgps/GPSLocation;->dilution:F

    invoke-virtual {v0, v1}, Landroid/location/Location;->setAccuracy(F)V

    .line 238
    iget-object v1, p0, Llt/noframe/gpsfarmguide/gps/AppLocationProvider$onLocationUpdate$1;->$location:Llt/farmis/libraries/externalgps/GPSLocation;

    iget v1, v1, Llt/farmis/libraries/externalgps/GPSLocation;->altitude:F

    float-to-double v1, v1

    invoke-virtual {v0, v1, v2}, Landroid/location/Location;->setAltitude(D)V

    .line 239
    iget-object v1, p0, Llt/noframe/gpsfarmguide/gps/AppLocationProvider$onLocationUpdate$1;->$location:Llt/farmis/libraries/externalgps/GPSLocation;

    iget v1, v1, Llt/farmis/libraries/externalgps/GPSLocation;->lat:F

    float-to-double v1, v1

    invoke-virtual {v0, v1, v2}, Landroid/location/Location;->setLatitude(D)V

    .line 240
    iget-object v1, p0, Llt/noframe/gpsfarmguide/gps/AppLocationProvider$onLocationUpdate$1;->$location:Llt/farmis/libraries/externalgps/GPSLocation;

    iget v1, v1, Llt/farmis/libraries/externalgps/GPSLocation;->lon:F

    float-to-double v1, v1

    invoke-virtual {v0, v1, v2}, Landroid/location/Location;->setLongitude(D)V

    .line 241
    iget-object v1, p0, Llt/noframe/gpsfarmguide/gps/AppLocationProvider$onLocationUpdate$1;->$location:Llt/farmis/libraries/externalgps/GPSLocation;

    iget v1, v1, Llt/farmis/libraries/externalgps/GPSLocation;->velocity:F

    invoke-virtual {v0, v1}, Landroid/location/Location;->setSpeed(F)V

    .line 242
    iget-object v1, p0, Llt/noframe/gpsfarmguide/gps/AppLocationProvider$onLocationUpdate$1;->$location:Llt/farmis/libraries/externalgps/GPSLocation;

    iget v1, v1, Llt/farmis/libraries/externalgps/GPSLocation;->time:F

    float-to-long v1, v1

    invoke-virtual {v0, v1, v2}, Landroid/location/Location;->setTime(J)V

    .line 244
    new-instance v1, Landroid/os/Bundle;

    invoke-direct {v1}, Landroid/os/Bundle;-><init>()V

    .line 245
    iget-object v2, p0, Llt/noframe/gpsfarmguide/gps/AppLocationProvider$onLocationUpdate$1;->$location:Llt/farmis/libraries/externalgps/GPSLocation;

    iget v2, v2, Llt/farmis/libraries/externalgps/GPSLocation;->quality:I

    const-string v3, "quality"

    invoke-virtual {v1, v3, v2}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 246
    invoke-virtual {v0, v1}, Landroid/location/Location;->setExtras(Landroid/os/Bundle;)V

    .line 247
    iget-object v1, p0, Llt/noframe/gpsfarmguide/gps/AppLocationProvider$onLocationUpdate$1;->this$0:Llt/noframe/gpsfarmguide/gps/AppLocationProvider;

    invoke-virtual {v1, v0}, Llt/noframe/gpsfarmguide/gps/AppLocationProvider;->onLocationChanged(Landroid/location/Location;)V

    return-void
.end method
